<!DOCTYPE html>
<html lang="en">
<head>
<title>WebView4Delphi: uWVCoreWebView2Profile: Class TCoreWebView2Profile</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="generator" content="PasDoc 0.16.0-snapshot">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
</head>
<body>
<span id="TCoreWebView2Profile"></span><h1 class="cio">Class TCoreWebView2Profile</h1>
<div class="sections">
<div class="one_section"><a class="section" href="#PasDoc-Description">Description</a></div><div class="one_section"><a class="section" href="#PasDoc-Hierarchy">Hierarchy</a></div><div class="one_section"><a class="section" href="#PasDoc-Fields">Fields</a></div><div class="one_section"><a class="section" href="#PasDoc-Methods">Methods</a></div><div class="one_section"><a class="section" href="#PasDoc-Properties">Properties</a></div></div>
<span id="PasDoc-Description"></span><h2 class="unit">Unit</h2>
<p class="unitlink">
<a href="uWVCoreWebView2Profile.html">uWVCoreWebView2Profile</a></p>
<h2 class="declaration">Declaration</h2>
<p class="declaration">
<code>type TCoreWebView2Profile = class(TObject)</code></p>
<h2 class="description">Description</h2>
<p>
 Provides a set of properties to configure a Profile object. </p>
<p>


<p>&lt;see href=&quot;<a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile">https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile</a>&quot;&gt;See the ICoreWebView2Profile article.)</p>
<span id="PasDoc-Hierarchy"></span><h2 class="hierarchy">Hierarchy</h2>
<ul class="hierarchy"><li class="ancestor">TObject</li>
<li class="thisitem">TCoreWebView2Profile</li></ul><h2 class="overview">Overview</h2>
<span id="PasDoc-Fields"></span><h3 class="summary">Fields</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code><strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#FBaseIntf">FBaseIntf</a></strong>: <a href="uWVTypeLibrary.ICoreWebView2Profile.html">ICoreWebView2Profile</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code><strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#FBaseIntf2">FBaseIntf2</a></strong>: <a href="uWVTypeLibrary.ICoreWebView2Profile2.html">ICoreWebView2Profile2</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code><strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#FBaseIntf3">FBaseIntf3</a></strong>: <a href="uWVTypeLibrary.ICoreWebView2Profile3.html">ICoreWebView2Profile3</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code><strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#FBaseIntf4">FBaseIntf4</a></strong>: <a href="uWVTypeLibrary.ICoreWebView2Profile4.html">ICoreWebView2Profile4</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code><strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#FBaseIntf5">FBaseIntf5</a></strong>: <a href="uWVTypeLibrary.ICoreWebView2Profile5.html">ICoreWebView2Profile5</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code><strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#FBaseIntf6">FBaseIntf6</a></strong>: <a href="uWVTypeLibrary.ICoreWebView2Profile6.html">ICoreWebView2Profile6</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code><strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#FBaseIntf7">FBaseIntf7</a></strong>: <a href="uWVTypeLibrary.ICoreWebView2Profile7.html">ICoreWebView2Profile7</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code><strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#FBaseIntf8">FBaseIntf8</a></strong>: <a href="uWVTypeLibrary.ICoreWebView2Profile8.html">ICoreWebView2Profile8</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code><strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#FProfileDeletedToken">FProfileDeletedToken</a></strong>: <a href="uWVTypeLibrary.EventRegistrationToken.html">EventRegistrationToken</a>;</code></td>
</tr>
</table>
<span id="PasDoc-Methods"></span><h3 class="summary">Methods</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetInitialized">GetInitialized</a></strong>: boolean;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetProfileName">GetProfileName</a></strong>: <a href="uWVTypes.html#wvstring">wvstring</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetIsInPrivateModeEnabled">GetIsInPrivateModeEnabled</a></strong>: boolean;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetProfilePath">GetProfilePath</a></strong>: <a href="uWVTypes.html#wvstring">wvstring</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetDefaultDownloadFolderPath">GetDefaultDownloadFolderPath</a></strong>: <a href="uWVTypes.html#wvstring">wvstring</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetPreferredColorScheme">GetPreferredColorScheme</a></strong>: <a href="uWVTypes.html#TWVPreferredColorScheme">TWVPreferredColorScheme</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetPreferredTrackingPreventionLevel">GetPreferredTrackingPreventionLevel</a></strong>: <a href="uWVTypes.html#TWVTrackingPreventionLevel">TWVTrackingPreventionLevel</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetCookieManager">GetCookieManager</a></strong>: <a href="uWVTypeLibrary.ICoreWebView2CookieManager.html">ICoreWebView2CookieManager</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetIsPasswordAutosaveEnabled">GetIsPasswordAutosaveEnabled</a></strong>: boolean;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetIsGeneralAutofillEnabled">GetIsGeneralAutofillEnabled</a></strong>: boolean;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#SetDefaultDownloadFolderPath-wvstring-">SetDefaultDownloadFolderPath</a></strong>(const aValue : <a href="uWVTypes.html#wvstring">wvstring</a>);</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#SetPreferredColorScheme-TWVPreferredColorScheme-">SetPreferredColorScheme</a></strong>(aValue : <a href="uWVTypes.html#TWVPreferredColorScheme">TWVPreferredColorScheme</a>);</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#SetPreferredTrackingPreventionLevel-TWVTrackingPreventionLevel-">SetPreferredTrackingPreventionLevel</a></strong>(aValue : <a href="uWVTypes.html#TWVTrackingPreventionLevel">TWVTrackingPreventionLevel</a>);</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#SetIsPasswordAutosaveEnabled-boolean-">SetIsPasswordAutosaveEnabled</a></strong>(aValue : boolean);</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#SetIsGeneralAutofillEnabled-boolean-">SetIsGeneralAutofillEnabled</a></strong>(aValue : boolean);</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#InitializeFields">InitializeFields</a></strong>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#InitializeTokens">InitializeTokens</a></strong>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#RemoveAllEvents">RemoveAllEvents</a></strong>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#AddProfileDeletedEvent-TComponent-">AddProfileDeletedEvent</a></strong>(const aBrowserComponent : TComponent) : boolean;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>constructor <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#Create-ICoreWebView2Profile-">Create</a></strong>(const aBaseIntf : <a href="uWVTypeLibrary.ICoreWebView2Profile.html">ICoreWebView2Profile</a>); reintroduce;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>destructor <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#Destroy">Destroy</a></strong>; override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#AddAllBrowserEvents-TComponent-">AddAllBrowserEvents</a></strong>(const aBrowserComponent : TComponent) : boolean;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#ClearBrowsingData-TWVBrowsingDataKinds-ICoreWebView2ClearBrowsingDataCompletedHandler-">ClearBrowsingData</a></strong>(dataKinds: <a href="uWVTypes.html#TWVBrowsingDataKinds">TWVBrowsingDataKinds</a>; const handler: <a href="uWVTypeLibrary.ICoreWebView2ClearBrowsingDataCompletedHandler.html">ICoreWebView2ClearBrowsingDataCompletedHandler</a>): boolean;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#ClearBrowsingDataInTimeRange-TWVBrowsingDataKinds-TDateTime-TDateTime-ICoreWebView2ClearBrowsingDataCompletedHandler-">ClearBrowsingDataInTimeRange</a></strong>(dataKinds: <a href="uWVTypes.html#TWVBrowsingDataKinds">TWVBrowsingDataKinds</a>; const startTime, endTime: TDateTime; const handler: <a href="uWVTypeLibrary.ICoreWebView2ClearBrowsingDataCompletedHandler.html">ICoreWebView2ClearBrowsingDataCompletedHandler</a>): boolean;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#ClearBrowsingDataAll-ICoreWebView2ClearBrowsingDataCompletedHandler-">ClearBrowsingDataAll</a></strong>(const handler: <a href="uWVTypeLibrary.ICoreWebView2ClearBrowsingDataCompletedHandler.html">ICoreWebView2ClearBrowsingDataCompletedHandler</a>): boolean;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#SetPermissionState-TWVPermissionKind-wvstring-TWVPermissionState-ICoreWebView2SetPermissionStateCompletedHandler-">SetPermissionState</a></strong>(PermissionKind: <a href="uWVTypes.html#TWVPermissionKind">TWVPermissionKind</a>; const origin: <a href="uWVTypes.html#wvstring">wvstring</a>; State: <a href="uWVTypes.html#TWVPermissionState">TWVPermissionState</a>; const completedHandler: <a href="uWVTypeLibrary.ICoreWebView2SetPermissionStateCompletedHandler.html">ICoreWebView2SetPermissionStateCompletedHandler</a>): boolean;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetNonDefaultPermissionSettings-ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler-">GetNonDefaultPermissionSettings</a></strong>(const completedHandler: <a href="uWVTypeLibrary.ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler.html">ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler</a>): boolean;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#AddBrowserExtension-wvstring-ICoreWebView2ProfileAddBrowserExtensionCompletedHandler-">AddBrowserExtension</a></strong>(const extensionFolderPath: <a href="uWVTypes.html#wvstring">wvstring</a>; const completedHandler: <a href="uWVTypeLibrary.ICoreWebView2ProfileAddBrowserExtensionCompletedHandler.html">ICoreWebView2ProfileAddBrowserExtensionCompletedHandler</a>): boolean;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetBrowserExtensions-ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler-">GetBrowserExtensions</a></strong>(const completedHandler: <a href="uWVTypeLibrary.ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler.html">ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler</a>): boolean;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#Delete">Delete</a></strong>: boolean;</code></td>
</tr>
</table>
<span id="PasDoc-Properties"></span><h3 class="summary">Properties</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#Initialized">Initialized</a></strong>                       : boolean                     read <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetInitialized">GetInitialized</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#BaseIntf">BaseIntf</a></strong>                          : <a href="uWVTypeLibrary.ICoreWebView2Profile.html">ICoreWebView2Profile</a>        read <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#FBaseIntf">FBaseIntf</a>                            write <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#FBaseIntf">FBaseIntf</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#ProfileName">ProfileName</a></strong>                       : <a href="uWVTypes.html#wvstring">wvstring</a>                    read <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetProfileName">GetProfileName</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#IsInPrivateModeEnabled">IsInPrivateModeEnabled</a></strong>            : boolean                     read <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetIsInPrivateModeEnabled">GetIsInPrivateModeEnabled</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#ProfilePath">ProfilePath</a></strong>                       : <a href="uWVTypes.html#wvstring">wvstring</a>                    read <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetProfilePath">GetProfilePath</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#DefaultDownloadFolderPath">DefaultDownloadFolderPath</a></strong>         : <a href="uWVTypes.html#wvstring">wvstring</a>                    read <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetDefaultDownloadFolderPath">GetDefaultDownloadFolderPath</a>         write <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#SetDefaultDownloadFolderPath-wvstring-">SetDefaultDownloadFolderPath</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#PreferredColorScheme">PreferredColorScheme</a></strong>              : <a href="uWVTypes.html#TWVPreferredColorScheme">TWVPreferredColorScheme</a>     read <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetPreferredColorScheme">GetPreferredColorScheme</a>              write <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#SetPreferredColorScheme-TWVPreferredColorScheme-">SetPreferredColorScheme</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#PreferredTrackingPreventionLevel">PreferredTrackingPreventionLevel</a></strong>  : <a href="uWVTypes.html#TWVTrackingPreventionLevel">TWVTrackingPreventionLevel</a>  read <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetPreferredTrackingPreventionLevel">GetPreferredTrackingPreventionLevel</a>  write <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#SetPreferredTrackingPreventionLevel-TWVTrackingPreventionLevel-">SetPreferredTrackingPreventionLevel</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#CookieManager">CookieManager</a></strong>                     : <a href="uWVTypeLibrary.ICoreWebView2CookieManager.html">ICoreWebView2CookieManager</a>  read <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetCookieManager">GetCookieManager</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#IsPasswordAutosaveEnabled">IsPasswordAutosaveEnabled</a></strong>         : boolean                     read <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetIsPasswordAutosaveEnabled">GetIsPasswordAutosaveEnabled</a>         write <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#SetIsPasswordAutosaveEnabled-boolean-">SetIsPasswordAutosaveEnabled</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <strong><a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#IsGeneralAutofillEnabled">IsGeneralAutofillEnabled</a></strong>          : boolean                     read <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetIsGeneralAutofillEnabled">GetIsGeneralAutofillEnabled</a>          write <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#SetIsGeneralAutofillEnabled-boolean-">SetIsGeneralAutofillEnabled</a>;</code></td>
</tr>
</table>
<h2 class="description">Description</h2>
<h3 class="detail">Fields</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="FBaseIntf"></span><code><strong>FBaseIntf</strong>: <a href="uWVTypeLibrary.ICoreWebView2Profile.html">ICoreWebView2Profile</a>;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="FBaseIntf2"></span><code><strong>FBaseIntf2</strong>: <a href="uWVTypeLibrary.ICoreWebView2Profile2.html">ICoreWebView2Profile2</a>;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="FBaseIntf3"></span><code><strong>FBaseIntf3</strong>: <a href="uWVTypeLibrary.ICoreWebView2Profile3.html">ICoreWebView2Profile3</a>;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="FBaseIntf4"></span><code><strong>FBaseIntf4</strong>: <a href="uWVTypeLibrary.ICoreWebView2Profile4.html">ICoreWebView2Profile4</a>;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="FBaseIntf5"></span><code><strong>FBaseIntf5</strong>: <a href="uWVTypeLibrary.ICoreWebView2Profile5.html">ICoreWebView2Profile5</a>;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="FBaseIntf6"></span><code><strong>FBaseIntf6</strong>: <a href="uWVTypeLibrary.ICoreWebView2Profile6.html">ICoreWebView2Profile6</a>;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="FBaseIntf7"></span><code><strong>FBaseIntf7</strong>: <a href="uWVTypeLibrary.ICoreWebView2Profile7.html">ICoreWebView2Profile7</a>;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="FBaseIntf8"></span><code><strong>FBaseIntf8</strong>: <a href="uWVTypeLibrary.ICoreWebView2Profile8.html">ICoreWebView2Profile8</a>;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="FProfileDeletedToken"></span><code><strong>FProfileDeletedToken</strong>: <a href="uWVTypeLibrary.EventRegistrationToken.html">EventRegistrationToken</a>;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<h3 class="detail">Methods</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="GetInitialized"></span><code>function <strong>GetInitialized</strong>: boolean;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="GetProfileName"></span><code>function <strong>GetProfileName</strong>: <a href="uWVTypes.html#wvstring">wvstring</a>;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="GetIsInPrivateModeEnabled"></span><code>function <strong>GetIsInPrivateModeEnabled</strong>: boolean;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="GetProfilePath"></span><code>function <strong>GetProfilePath</strong>: <a href="uWVTypes.html#wvstring">wvstring</a>;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="GetDefaultDownloadFolderPath"></span><code>function <strong>GetDefaultDownloadFolderPath</strong>: <a href="uWVTypes.html#wvstring">wvstring</a>;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="GetPreferredColorScheme"></span><code>function <strong>GetPreferredColorScheme</strong>: <a href="uWVTypes.html#TWVPreferredColorScheme">TWVPreferredColorScheme</a>;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="GetPreferredTrackingPreventionLevel"></span><code>function <strong>GetPreferredTrackingPreventionLevel</strong>: <a href="uWVTypes.html#TWVTrackingPreventionLevel">TWVTrackingPreventionLevel</a>;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="GetCookieManager"></span><code>function <strong>GetCookieManager</strong>: <a href="uWVTypeLibrary.ICoreWebView2CookieManager.html">ICoreWebView2CookieManager</a>;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="GetIsPasswordAutosaveEnabled"></span><code>function <strong>GetIsPasswordAutosaveEnabled</strong>: boolean;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="GetIsGeneralAutofillEnabled"></span><code>function <strong>GetIsGeneralAutofillEnabled</strong>: boolean;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="SetDefaultDownloadFolderPath-wvstring-"></span><code>procedure <strong>SetDefaultDownloadFolderPath</strong>(const aValue : <a href="uWVTypes.html#wvstring">wvstring</a>);</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="SetPreferredColorScheme-TWVPreferredColorScheme-"></span><code>procedure <strong>SetPreferredColorScheme</strong>(aValue : <a href="uWVTypes.html#TWVPreferredColorScheme">TWVPreferredColorScheme</a>);</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="SetPreferredTrackingPreventionLevel-TWVTrackingPreventionLevel-"></span><code>procedure <strong>SetPreferredTrackingPreventionLevel</strong>(aValue : <a href="uWVTypes.html#TWVTrackingPreventionLevel">TWVTrackingPreventionLevel</a>);</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="SetIsPasswordAutosaveEnabled-boolean-"></span><code>procedure <strong>SetIsPasswordAutosaveEnabled</strong>(aValue : boolean);</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="SetIsGeneralAutofillEnabled-boolean-"></span><code>procedure <strong>SetIsGeneralAutofillEnabled</strong>(aValue : boolean);</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="InitializeFields"></span><code>procedure <strong>InitializeFields</strong>;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="InitializeTokens"></span><code>procedure <strong>InitializeTokens</strong>;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="RemoveAllEvents"></span><code>procedure <strong>RemoveAllEvents</strong>;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="AddProfileDeletedEvent-TComponent-"></span><code>function <strong>AddProfileDeletedEvent</strong>(const aBrowserComponent : TComponent) : boolean;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Create-ICoreWebView2Profile-"></span><code>constructor <strong>Create</strong>(const aBaseIntf : <a href="uWVTypeLibrary.ICoreWebView2Profile.html">ICoreWebView2Profile</a>); reintroduce;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Destroy"></span><code>destructor <strong>Destroy</strong>; override;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="AddAllBrowserEvents-TComponent-"></span><code>function <strong>AddAllBrowserEvents</strong>(const aBrowserComponent : TComponent) : boolean;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Adds all the events of this class to an existing TWVBrowserBase instance. </p>
<p>
 </p>
<h6 class="description_section">Parameters</h6>
<dl class="parameters">
<dt>aBrowserComponent</dt>
<dd>The TWVBrowserBase instance.</dd>
</dl>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="ClearBrowsingData-TWVBrowsingDataKinds-ICoreWebView2ClearBrowsingDataCompletedHandler-"></span><code>function <strong>ClearBrowsingData</strong>(dataKinds: <a href="uWVTypes.html#TWVBrowsingDataKinds">TWVBrowsingDataKinds</a>; const handler: <a href="uWVTypeLibrary.ICoreWebView2ClearBrowsingDataCompletedHandler.html">ICoreWebView2ClearBrowsingDataCompletedHandler</a>): boolean;</code></td>
</tr>
<tr><td colspan="2">
<p>


<p>Clear browsing data based on a data type. This method takes two parameters, the first being a mask of one or more `COREWEBVIEW2_BROWSING_DATA_KINDS`. OR operation(s) can be applied to multiple `COREWEBVIEW2_BROWSING_DATA_KINDS` to create a mask representing those data types. The browsing data kinds that are supported are listed below. These data kinds follow a hierarchical structure in which nested bullet points are included in their parent bullet point's data kind.

<p>Ex: All DOM storage is encompassed in all site data which is encompassed in all profile data.

<p></p>

<pre class="preformatted">
* All Profile
  * All Site Data
    * All DOM Storage: File Systems, Indexed DB, Local Storage, Web SQL, Cache
        Storage
    * Cookies
  * Disk Cache
  * Download History
  * General Autofill
  * Password Autosave
  * Browsing History
  * Settings</pre>

<p>

<p>The completed handler will be invoked when the browsing data has been cleared and will indicate if the specified data was properly cleared. In the case in which the operation is interrupted and the corresponding data is not fully cleared the handler will return `E_ABORT` and otherwise will return `S_OK`.

<p>Because this is an asynchronous operation, code that is dependent on the cleared data must be placed in the callback of this operation.

<p>If the WebView object is closed before the clear browsing data operation has completed, the handler will be released, but not invoked. In this case the clear browsing data operation may or may not be completed.

<p>ClearBrowsingData clears the `dataKinds` regardless of timestamp.

<p></p>
<p>


<p>&lt;see href=&quot;<a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile2#clearbrowsingdata">https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile2#clearbrowsingdata</a>&quot;&gt;See the ICoreWebView2Profile2 article.)</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="ClearBrowsingDataInTimeRange-TWVBrowsingDataKinds-TDateTime-TDateTime-ICoreWebView2ClearBrowsingDataCompletedHandler-"></span><code>function <strong>ClearBrowsingDataInTimeRange</strong>(dataKinds: <a href="uWVTypes.html#TWVBrowsingDataKinds">TWVBrowsingDataKinds</a>; const startTime, endTime: TDateTime; const handler: <a href="uWVTypeLibrary.ICoreWebView2ClearBrowsingDataCompletedHandler.html">ICoreWebView2ClearBrowsingDataCompletedHandler</a>): boolean;</code></td>
</tr>
<tr><td colspan="2">
<p>


<p>ClearBrowsingDataInTimeRange behaves like ClearBrowsingData except that it takes in two additional parameters for the start and end time for which it should clear the data between. The `startTime` and `endTime` parameters correspond to the number of seconds since the UNIX epoch.

<p>`startTime` is inclusive while `endTime` is exclusive, therefore the data will be cleared between [startTime, endTime</p>
<p>
.

<p>)

<p>&lt;see href=&quot;<a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile2#clearbrowsingdataintimerange">https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile2#clearbrowsingdataintimerange</a>&quot;&gt;See the ICoreWebView2Profile2 article.)</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="ClearBrowsingDataAll-ICoreWebView2ClearBrowsingDataCompletedHandler-"></span><code>function <strong>ClearBrowsingDataAll</strong>(const handler: <a href="uWVTypeLibrary.ICoreWebView2ClearBrowsingDataCompletedHandler.html">ICoreWebView2ClearBrowsingDataCompletedHandler</a>): boolean;</code></td>
</tr>
<tr><td colspan="2">
<p>
 ClearBrowsingDataAll behaves like ClearBrowsingData except that it clears the entirety of the data associated with the profile it is called on. It clears the data regardless of timestamp. </p>
<p>


<p>&lt;see href=&quot;<a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile2#clearbrowsingdataall">https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile2#clearbrowsingdataall</a>&quot;&gt;See the ICoreWebView2Profile2 article.)</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="SetPermissionState-TWVPermissionKind-wvstring-TWVPermissionState-ICoreWebView2SetPermissionStateCompletedHandler-"></span><code>function <strong>SetPermissionState</strong>(PermissionKind: <a href="uWVTypes.html#TWVPermissionKind">TWVPermissionKind</a>; const origin: <a href="uWVTypes.html#wvstring">wvstring</a>; State: <a href="uWVTypes.html#TWVPermissionState">TWVPermissionState</a>; const completedHandler: <a href="uWVTypeLibrary.ICoreWebView2SetPermissionStateCompletedHandler.html">ICoreWebView2SetPermissionStateCompletedHandler</a>): boolean;</code></td>
</tr>
<tr><td colspan="2">
<p>


<p>Sets permission state for the given permission kind and origin asynchronously. The change persists across sessions until it is changed by another call to `SetPermissionState`, or by setting the `State` property in `PermissionRequestedEventArgs`. Setting the state to `COREWEBVIEW2_PERMISSION_STATE_DEFAULT` will erase any state saved in the profile and restore the default behavior.

<p>The origin should have a valid scheme and host (e.g. &quot;<a href="https://www.example.com">https://www.example.com</a>&quot;), otherwise the method fails with `E_INVALIDARG`. Additional URI parts like path and fragment are ignored. For example, &quot;<a href="https://wwww.example.com/app1/index.html/">https://wwww.example.com/app1/index.html/</a>&quot; is treated the same as &quot;<a href="https://wwww.example.com">https://wwww.example.com</a>&quot;. See the [MDN origin definition](<a href="https://developer.mozilla.org/docs/Glossary/Origin">https://developer.mozilla.org/docs/Glossary/Origin</a>) for more details.

<p></p>
<p>


<p>&lt;see href=&quot;<a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile4#setpermissionstate">https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile4#setpermissionstate</a>&quot;&gt;See the ICoreWebView2Profile4 article.)</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="GetNonDefaultPermissionSettings-ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler-"></span><code>function <strong>GetNonDefaultPermissionSettings</strong>(const completedHandler: <a href="uWVTypeLibrary.ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler.html">ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler</a>): boolean;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Invokes the handler with a collection of all nondefault permission settings. Use this method to get the permission state set in the current and previous sessions. </p>
<p>


<p>&lt;see href=&quot;<a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile4#getnondefaultpermissionsettings">https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile4#getnondefaultpermissionsettings</a>&quot;&gt;See the ICoreWebView2Profile4 article.)</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="AddBrowserExtension-wvstring-ICoreWebView2ProfileAddBrowserExtensionCompletedHandler-"></span><code>function <strong>AddBrowserExtension</strong>(const extensionFolderPath: <a href="uWVTypes.html#wvstring">wvstring</a>; const completedHandler: <a href="uWVTypeLibrary.ICoreWebView2ProfileAddBrowserExtensionCompletedHandler.html">ICoreWebView2ProfileAddBrowserExtensionCompletedHandler</a>): boolean;</code></td>
</tr>
<tr><td colspan="2">
<p>


<p>Adds the [browser extension](<a href="https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions">https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions</a>) using the extension path for unpacked extensions from the local device. Extension is running right after installation.

<p>The extension folder path is the topmost folder of an unpacked browser extension and contains the browser extension manifest file.

<p>If the `extensionFolderPath` is an invalid path or doesn't contain the extension manifest.json file, this function will return `ERROR_FILE_NOT_FOUND` to callers.

<p>Installed extension will default `IsEnabled` to true.

<p>When `AreBrowserExtensionsEnabled` is `FALSE`, `AddBrowserExtension` will fail and return HRESULT `ERROR_NOT_SUPPORTED`.

<p>During installation, the content of the extension is not copied to the user data folder. Once the extension is installed, changing the content of the extension will cause the extension to be removed from the installed profile.

<p>When an extension is added the extension is persisted in the corresponding profile. The extension will still be installed the next time you use this profile.

<p>When an extension is installed from a folder path, adding the same extension from the same folder path means reinstalling this extension. When two extensions with the same Id are installed, only the later installed extension will be kept.

<p>Extensions that are designed to include any UI interactions (e.g. icon, badge, pop up, etc.) can be loaded and used but will have missing UI entry points due to the lack of browser UI elements to host these entry points in WebView2.

<p>The following summarizes the possible error values that can be returned from `AddBrowserExtension` and a description of why these errors occur.

<p></p>

<pre class="preformatted">
Error value                                     | Description
----------------------------------------------- | --------------------------
`HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED)`       | Extensions are disabled.
`HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)`      | Cannot find `manifest.json` file or it is not a valid extension manifest.
`E_ACCESSDENIED`                                | Cannot load extension with file or directory name starting with \&quot;_\&quot;, reserved for use by the system.
`E_FAIL`                                        | Extension failed to install with other unknown reasons.</pre>

<p> </p>
<p>


<p>&lt;see href=&quot;<a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile7#addbrowserextension">https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile7#addbrowserextension</a>&quot;&gt;See the ICoreWebView2Profile7 article.)</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="GetBrowserExtensions-ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler-"></span><code>function <strong>GetBrowserExtensions</strong>(const completedHandler: <a href="uWVTypeLibrary.ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler.html">ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler</a>): boolean;</code></td>
</tr>
<tr><td colspan="2">
<p>


<p>Gets a snapshot of the set of extensions installed at the time `GetBrowserExtensions` is called. If an extension is installed or uninstalled after `GetBrowserExtensions` completes, the list returned by `GetBrowserExtensions` remains the same.

<p>When `AreBrowserExtensionsEnabled` is `FALSE`, `GetBrowserExtensions` won't return any extensions on current user profile.

<p></p>
<p>


<p>&lt;see href=&quot;<a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile7#getbrowserextensions">https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile7#getbrowserextensions</a>&quot;&gt;See the ICoreWebView2Profile7 article.)</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Delete"></span><code>function <strong>Delete</strong>: boolean;</code></td>
</tr>
<tr><td colspan="2">
<p>


<p>After the API is called, the profile will be marked for deletion. The local profile's directory will be deleted at browser process exit. If it fails to delete, because something else is holding the files open, WebView2 will try to delete the profile at all future browser process starts until successful.

<p>The corresponding CoreWebView2s will be closed and the ICoreWebView2Profile.Deleted event will be raised. See `ICoreWebView2Profile.Deleted` for more information.

<p>If you try to create a new profile with the same name as an existing profile that has been marked as deleted but hasn't yet been deleted, profile creation will fail with HRESULT_FROM_WIN32(ERROR_DELETE_PENDING).

<p></p>
<p>


<p>&lt;see href=&quot;<a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile8#delete">https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile8#delete</a>&quot;&gt;See the ICoreWebView2Profile8 article.)</p>
</td></tr>
</table>
<h3 class="detail">Properties</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Initialized"></span><code>property <strong>Initialized</strong>                       : boolean                     read <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetInitialized">GetInitialized</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Returns true when the interface implemented by this class is fully initialized. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="BaseIntf"></span><code>property <strong>BaseIntf</strong>                          : <a href="uWVTypeLibrary.ICoreWebView2Profile.html">ICoreWebView2Profile</a>        read <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#FBaseIntf">FBaseIntf</a>                            write <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#FBaseIntf">FBaseIntf</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Returns the interface implemented by this class. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="ProfileName"></span><code>property <strong>ProfileName</strong>                       : <a href="uWVTypes.html#wvstring">wvstring</a>                    read <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetProfileName">GetProfileName</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Name of the profile. </p>
<p>


<p>&lt;see href=&quot;<a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile#get_profilename">https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile#get_profilename</a>&quot;&gt;See the ICoreWebView2Profile article.)</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="IsInPrivateModeEnabled"></span><code>property <strong>IsInPrivateModeEnabled</strong>            : boolean                     read <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetIsInPrivateModeEnabled">GetIsInPrivateModeEnabled</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
 InPrivate mode is enabled or not. </p>
<p>


<p>&lt;see href=&quot;<a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile#get_isinprivatemodeenabled">https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile#get_isinprivatemodeenabled</a>&quot;&gt;See the ICoreWebView2Profile article.)</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="ProfilePath"></span><code>property <strong>ProfilePath</strong>                       : <a href="uWVTypes.html#wvstring">wvstring</a>                    read <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetProfilePath">GetProfilePath</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Full path of the profile directory. </p>
<p>


<p>&lt;see href=&quot;<a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile#get_profilepath">https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile#get_profilepath</a>&quot;&gt;See the ICoreWebView2Profile article.)</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="DefaultDownloadFolderPath"></span><code>property <strong>DefaultDownloadFolderPath</strong>         : <a href="uWVTypes.html#wvstring">wvstring</a>                    read <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetDefaultDownloadFolderPath">GetDefaultDownloadFolderPath</a>         write <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#SetDefaultDownloadFolderPath-wvstring-">SetDefaultDownloadFolderPath</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Gets the `DefaultDownloadFolderPath` property. The default value is the system default download folder path for the user. </p>
<p>


<p>&lt;see href=&quot;<a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile#get_defaultdownloadfolderpath">https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile#get_defaultdownloadfolderpath</a>&quot;&gt;See the ICoreWebView2Profile article.)</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="PreferredColorScheme"></span><code>property <strong>PreferredColorScheme</strong>              : <a href="uWVTypes.html#TWVPreferredColorScheme">TWVPreferredColorScheme</a>     read <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetPreferredColorScheme">GetPreferredColorScheme</a>              write <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#SetPreferredColorScheme-TWVPreferredColorScheme-">SetPreferredColorScheme</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>


<p>The PreferredColorScheme property sets the overall color scheme of the WebView2s associated with this profile. This sets the color scheme for WebView2 UI like dialogs, prompts, and context menus by setting the media feature `prefers-color-scheme` for websites to respond to.

<p>The default value for this is COREWEBVIEW2_PREFERRED_COLOR_AUTO, which will follow whatever theme the OS is currently set to.

<p>Returns the value of the `PreferredColorScheme` property.

<p></p>
<p>


<p>&lt;see href=&quot;<a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile#get_preferredcolorscheme">https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile#get_preferredcolorscheme</a>&quot;&gt;See the ICoreWebView2Profile article.)</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="PreferredTrackingPreventionLevel"></span><code>property <strong>PreferredTrackingPreventionLevel</strong>  : <a href="uWVTypes.html#TWVTrackingPreventionLevel">TWVTrackingPreventionLevel</a>  read <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetPreferredTrackingPreventionLevel">GetPreferredTrackingPreventionLevel</a>  write <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#SetPreferredTrackingPreventionLevel-TWVTrackingPreventionLevel-">SetPreferredTrackingPreventionLevel</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>


<p>The `PreferredTrackingPreventionLevel` property allows you to control levels of tracking prevention for WebView2 which are associated with a profile. This level would apply to the context of the profile. That is, all WebView2s sharing the same profile will be affected and also the value is persisted in the user data folder.

<p>See `COREWEBVIEW2_TRACKING_PREVENTION_LEVEL` for descriptions of levels.

<p>If tracking prevention feature is enabled when creating the WebView2 environment, you can also disable tracking prevention later using this property and `COREWEBVIEW2_TRACKING_PREVENTION_LEVEL_NONE` value but that doesn't improves runtime performance.

<p>There is `ICoreWebView2EnvironmentOptions5::EnableTrackingPrevention` property to enable/disable tracking prevention feature for all the WebView2's created in the same environment. If enabled, `PreferredTrackingPreventionLevel` is set to `COREWEBVIEW2_TRACKING_PREVENTION_LEVEL_BALANCED` by default for all the WebView2's and profiles created in the same environment or is set to the level whatever value was last changed/persisted to the profile. If disabled `PreferredTrackingPreventionLevel` is not respected by WebView2. If `PreferredTrackingPreventionLevel` is set when the feature is disabled, the property value get changed and persisted but it will takes effect only if `ICoreWebView2EnvironmentOptions5::EnableTrackingPrevention` is true.

<p></p>
<p>


<p>&lt;see href=&quot;<a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile3#get_preferredtrackingpreventionlevel">https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile3#get_preferredtrackingpreventionlevel</a>&quot;&gt;See the ICoreWebView2Profile3 article.)</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="CookieManager"></span><code>property <strong>CookieManager</strong>                     : <a href="uWVTypeLibrary.ICoreWebView2CookieManager.html">ICoreWebView2CookieManager</a>  read <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetCookieManager">GetCookieManager</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Get the cookie manager for the profile. All CoreWebView2s associated with this profile share the same cookie values. Changes to cookies in this cookie manager apply to all CoreWebView2s associated with this profile. See ICoreWebView2CookieManager. </p>
<p>


<p>&lt;see href=&quot;<a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile5#get_cookiemanager">https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile5#get_cookiemanager</a>&quot;&gt;See the ICoreWebView2Profile5 article.)</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="IsPasswordAutosaveEnabled"></span><code>property <strong>IsPasswordAutosaveEnabled</strong>         : boolean                     read <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetIsPasswordAutosaveEnabled">GetIsPasswordAutosaveEnabled</a>         write <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#SetIsPasswordAutosaveEnabled-boolean-">SetIsPasswordAutosaveEnabled</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>


<p>IsPasswordAutosaveEnabled controls whether autosave for password information is enabled. The IsPasswordAutosaveEnabled property behaves independently of the IsGeneralAutofillEnabled property. When IsPasswordAutosaveEnabled is false, no new password data is saved and no Save/Update Password prompts are displayed. However, if there was password data already saved before disabling this setting, then that password information is auto-populated, suggestions are shown and clicking on one will populate the fields.

<p>When IsPasswordAutosaveEnabled is true, password information is auto-populated, suggestions are shown and clicking on one will populate the fields, new data is saved, and a Save/Update Password prompt is displayed.

<p>It will take effect immediately after setting. The default value is `FALSE`.

<p>This property has the same value as `CoreWebView2Settings.IsPasswordAutosaveEnabled`, and changing one will change the other. All `CoreWebView2`s with the same `CoreWebView2Profile` will share the same value for this property, so for the `CoreWebView2`s with the same profile, their `CoreWebView2Settings.IsPasswordAutosaveEnabled` and `CoreWebView2Profile.IsPasswordAutosaveEnabled` will always have the same value.

<p></p>
<p>


<p>&lt;see href=&quot;<a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile6#get_ispasswordautosaveenabled">https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile6#get_ispasswordautosaveenabled</a>&quot;&gt;See the ICoreWebView2Profile6 article.)</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="IsGeneralAutofillEnabled"></span><code>property <strong>IsGeneralAutofillEnabled</strong>          : boolean                     read <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#GetIsGeneralAutofillEnabled">GetIsGeneralAutofillEnabled</a>          write <a href="uWVCoreWebView2Profile.TCoreWebView2Profile.html#SetIsGeneralAutofillEnabled-boolean-">SetIsGeneralAutofillEnabled</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>


<p>IsGeneralAutofillEnabled controls whether autofill for information like names, street and email addresses, phone numbers, and arbitrary input is enabled. This excludes password and credit card information. When IsGeneralAutofillEnabled is false, no suggestions appear, and no new information is saved. When IsGeneralAutofillEnabled is true, information is saved, suggestions appear and clicking on one will populate the form fields.

<p>It will take effect immediately after setting. The default value is `TRUE`.

<p>This property has the same value as `CoreWebView2Settings.IsGeneralAutofillEnabled`, and changing one will change the other. All `CoreWebView2`s with the same `CoreWebView2Profile` will share the same value for this property, so for the `CoreWebView2`s with the same profile, their `CoreWebView2Settings.IsGeneralAutofillEnabled` and `CoreWebView2Profile.IsGeneralAutofillEnabled` will always have the same value.

<p></p>
<p>


<p>&lt;see href=&quot;<a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile6#get_isgeneralautofillenabled">https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile6#get_isgeneralautofillenabled</a>&quot;&gt;See the ICoreWebView2Profile6 article.)</p>
</td></tr>
</table>
<hr><span class="appinfo"><em>Generated by <a href="https://pasdoc.github.io/">PasDoc 0.16.0-snapshot</a>. </em>
</span>
</body></html>
